{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
<div class="admin_mainbody">
{yun:}include file="$comstyle/left.htm"{/yun}
<div class=right_box>
  <div class=admincont_box>
    <div class="com_tit"><span class="com_tit_span"> 招聘广告服务</span> </div>
	<div class="job_list_tit">
         <ul class="">
       
       <li {yun:}if $smarty.get.c=="ad"{/yun}  class="job_list_tit_cur"{yun:}/if{/yun} ><a href="index.php?c=ad">购买广告位</a></li> 
       <li {yun:}if $smarty.get.c=="ad_order"{/yun}class="job_list_tit_cur"{yun:}/if{/yun}><a href="index.php?c=ad_order">广告订单</a></li>
         </ul>
         </div>
    <div class="com_body mt20">
      <table class="com_table" id="job_checkbokid">
        {yun:}if $rows{/yun}
        <tr>
          <th>充值单号</th>
          <th>订单金额</th>
		  <th>购买时长</th>
		  <th>广告图片</th>
          <th>订单时间</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
        {yun:}/if{/yun}
        {yun:}foreach from=$rows item=log{/yun}
        {yun:}assign var="state" value=$log.pay_state{/yun}
        <tr>
          <td>{yun:}$log.order_id{/yun}</td>
          <td  align="center">{yun:}if $log.buytype==1{/yun}{yun:}$log.integral{/yun}&nbsp;{yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}{yun:}elseif $log.buytype==2{/yun}{yun:}$log.price{/yun}&nbsp;元{yun:}/if{/yun}</td>
          
		  <td align="center">{yun:}$log.buy_time{/yun}个月</td>
		  <td align="center"><a href=".{yun:}$log.pic_url{/yun}" target="_blank">查看</a></td>
          <td align="center">{yun:}$log.datetime|date_format:'%Y-%m-%d %H:%M:%S'{/yun}</td>
          <td align="center"> {yun:}if $log.status=="1"{/yun} <span class="y_verify">已审核</span>{yun:}elseif $log.status=="2"{/yun} <span class="n_verify">已退回</span>{yun:}else{/yun} <span class="wate_verify">未审核</span>{yun:}/if{/yun} </td>
          <td align="center"> 
		  {yun:}if $log.status!="1"{/yun} <a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?c=ad_order&act=del&id={yun:}$log.id{/yun}'); " class="com_bth cblue">删除</a> {yun:}/if{/yun} 
		  <a href="index.php?c=ad_order&act=look&id={yun:}$log.id{/yun}" class="com_bth cblue">详情</a>
		  {yun:}if $log.status=="2"&&$log.statusbody{/yun} <a href="javascript:;" onclick="show_msg('{yun:}$log.statusbody{/yun}')" class="com_bth cblue">原因</a>{yun:}/if{/yun}
		  {yun:}if $log.order_state==1&& $log.order_type!='bank'{/yun}<a href="index.php?c=payment&id={yun:}$log.orderid{/yun}" class="com_bth cblue">去付款</a>{yun:}/if{/yun}
		  </td>
        </tr>
        {yun:}foreachelse{/yun}
        <tr>
          <td colspan="6" class="table_end"><div class="msg_no">
              <p>亲爱的用户，目前您还没有广告订单记录</p>
              <a href="index.php?c=ad" title="购买广告位"  class="com_msg_no_bth com_submit">购买广告位</a></div></td>
        </tr>
        {yun:}/foreach{/yun}
        <tr>
          <td colspan="6" class="table_end"><div class="diggg">{yun:}$pagenav{/yun}</div></td>
        </tr>
      </table>
    </div>
  </div>
</div>
<script>
function show_msg(msg){
	$("#msgs").html(msg);
	$.layer({
		type : 1,
		title :'查看原因', 
		closeBtn : [0 , true],
		border : [10 , 0.3 , '#000', true],
		area : ['400px','200px'],
		page : {dom :"#showmsg"}
	});
}
</script>
<div id="showmsg"  style="display:none; width: 400px;">
  <div>
    <div id="infobox">
      <div class="admin_Operating_sh" style="padding:10px; ">
        <div class="admin_Operating_sh_h1" style="padding:5px;">
          <div style="height:80px;overflow:auto;" id="msgs"></div>
        </div>
        <div class="admin_Operating_sub" style="margin-top:10px;"> &nbsp;&nbsp;
          <input type="button" onClick="layer.close(layer.index);" class="cancel_btn" value='确认'>
        </div>
      </div>
    </div>
  </div>
</div>
{yun:}include file="$comstyle/footer.htm"{/yun} 